﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using DevExpress.Web.ASPxGridView;

/// <summary>
/// Summary description for ASPxControlsFormat
/// </summary>
public class ASPxControlsFormat
{
    public ASPxControlsFormat()
    {
        //
        // TODO: Add constructor logic here
        //
    }

    public static void ASPxGridFormat(ASPxGridView grd)
    {

        grd.Width = Unit.Percentage(100);
        grd.SettingsPager.AlwaysShowPager = true;
        grd.Settings.ShowFilterRow = true;
        grd.SettingsBehavior.ColumnResizeMode = (ColumnResizeMode)Enum.Parse(typeof(ColumnResizeMode), "NextColumn", true);
        grd.AutoGenerateColumns = false;
        grd.SettingsBehavior.AllowSort = true;
        grd.Settings.ShowFilterRowMenu = true;
        grd.Settings.ShowGroupPanel = true;
        grd.SettingsPager.PageSize = 10;
    }

}
